package com.xiaoshuidi.cloud.module.contract.api;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.contract.enums.ApiConstants;
import com.xiaoshuidi.cloud.module.contract.vo.OrderFeesDetailApiVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = ApiConstants.SERVERNAME)
public interface OrderFeesApi {

    @GetMapping("/rpc-api/contract/orderDetail")
    @Operation(summary = "通过账单id 获得账单明细列表")
    @Parameter(name = "orderId", description = "账单id", required = true, example = "7422")
    public CommonResult<OrderFeesDetailApiVo> orderDetail(@RequestParam("id") Long id);
}
